From a6bdc59213daac8c8ad26d6ff935f4697195b95e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 13 Mar 2008 00:35:54 +0000 Subject: [PATCH] When finding the common prefix, assert that we have the correct folder loaded Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=19821 --- gtk/gtkfilechooserentry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 4cc5853419..6c1e9c7a7d 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -462,7 +462,9 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry, if (!parsed) return; - /* FIXME: assert that the current folder path is the same as the parsed path? */ + g_assert (parsed_folder_path != NULL + && chooser_entry->current_folder_path != NULL + && gtk_file_path_compare (parsed_folder_path, chooser_entry->current_folder_path) == 0); valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (chooser_entry->completion_store), &iter); -- 2.30.2